import 'package:flutter_roujiaosuo/constants/common_constants.dart';
import 'package:flutter_roujiaosuo/flutter_bloc/requests/dio_util.dart';
import 'package:flutter_roujiaosuo/flutter_bloc/requests/models/SupplyModel.dart';

class SupplyApi {
  Future<Supply> getSupplyList(Map<String, dynamic> params) async {
    BaseResp<Supply> res = await DioUtil().request(Method.get,
        RoujiaosuoApi.Supply_List, BaseProcessor(false, fun: Supply.generObj),
        queryParameters: params);

    return res.data;
  }
}
